<include file="__TPL__/head.html">

<!-- tip -->
<div class="w1200 auto p10">
	<a href="" class="fm f16">我的京东></a>
	<a href="" class="fs">我的订单</a>
</div>
<!-- 订单开始 -->
<div class="w1200 auto of">
	<!-- 左侧 -->
	<div class="l w200">
		<div class="pr15">
			<div class="bdd">
				<p class="p10 bggray2 white fm f14">会员中心</p>
				<p class="bgwhite-1 p10 fm">订单中心</p>
				<p class="p5">
					<a href="order" class="pl10" onclick="return tab(this);">我的订单</a>
				</p>
				<p class="bgwhite-1 p10 fm">我的资料</p>
				<p class="p5">
					<a href="user" class="pl10" onclick="return tab(this);">修改密码</a>
				</p>
			</div>
		</div>
	</div>
	<!-- 左侧结束 -->
	<!-- 右侧 -->
	<div class="l  w1000">
		<div class="user dn">
			<div class="bdc p10">
				<h5 class="p10 bgwhite-1">修改密码</h5>
				<form action="" method="post">
					<p class="p10"><span class="w100 tr mr10 dib">原密码：</span><input type="password" name="oldPass" class='bde p5 pct30'></p>
					<p class="p10"><span class="w100 tr mr10 dib">新密码：</span><input type="password" name="newPass" class='bde p5 pct30'></p>
					<p class="p10"><span class="w100 tr mr10 dib">确认新密码：</span><input type="password" name="newPassed" class='bde p5 pct30'></p>
					<p class="p10 tc fm"><input type="submit" class="white bgred f14 hand p5 fm"></p>
				</form>
			</div>
		</div>
		<div class="order">
			<table class="bdd p10 pct100">
				<tr class="bgwhite-2">
					<td class="p10 bdd tc">订单信息</td>
					<td class="p10 bdd tc">收货人</td>
					<td class="p10 bdd tc">订单金额</td>
					<td class="p10 bdd tc">时间</td>
					<td class="p10 bdd tc">状态</td>
					<td class="p10 bdd tc">操作</td>
				</tr>
				<list from="$order" name="o">
					<tr class="bgwhite-1">
						<td colspan='6' class="p10">订单编号：<span class="blue-1">{$o.ordersn}</span></td>
					</tr>
					
					<tr>
						<td class="p10 bdd">
							<list from="$o.goods" name="g">
								<a class="m5 bdc p2 dib" href="{|U('Index/content',array('gid'=>$g['gid']))}" title="{$g.gname}"><img class="h30" src="__ROOT__/{$g.index_pic}" alt="{$g.gname}"></a>
							</list>
						</td>
						<td class="p10 bdd tc">{$o.consignee}</td>
						<td class="p10 bdd tc">{$o.prices}</td>
						<td class="p10 bdd tc">{$o.order_time|hd_date}</td>
						<td class="p10 bdd tc fm">
							
							<if value="$o.stat eq 2">
								<a class="btn bgorange" href="">去付款</a>
							<else/>
								{$o.stats}
							</if>
						</td>
						<td class="p10 bdd tc">
							<a href="{|U('seeOrder',array('oid'=>$o['oid']))}" class="seeOrder bgwhite-2 dib p5" ordertime="{$o.order_time|hd_date}">查看</a>
							<a href="{|U('delOrder',array('oid'=>$o['oid']))}" class=" bgred5 dib p5" onclick="return confirm('您确定要删除吗？');">删除</a>
						</td>
					</tr>
					
				</list>
			</table>
		</div>
	</div>
	<!-- 右侧结束 -->
</div>
<!-- 订单结束 -->
<script type="text/javascript">
	function tab(id){
		var url = '.'+$(id).attr('href');
		$(url).show().siblings().hide();
		return false;
	}
	//查看订单
	$('.seeOrder').click(function(){
		var url=$(this).attr('href'),
			orderTime=$(this).attr('ordertime');
			
		$.get(url,null,function(re){
			var h='<div class="bdc w500">\
					<div class="bgwhite-2 p10 fm f16">订单信息</div>\
					<p class="p10">订单编号：'+re.ordersn+'</p>\
					<p class="p10">下单时间：'+orderTime+'</p>\
					<div class="bgwhite-2 p10 fm f16">收货人信息</div>\
					<p class="p10">收货人姓名：'+re.consignee+'</p>\
					<p class="p10">收货地址：'+re.address+'</p>\
					<p class="p10">手机：'+re.phone+'</p>\
					<p class="p10">固定电话：'+re.tel+'</p>\
					<div class="bgwhite-2 p10 fm f16">订单总金额：<span class="red fm f16">￥：'+re.prices+'</span></div>\
				</div>\
			';
			$.msg({
				str:h,
				timeout:200,
				shade:0,
				closebtn:1
			})

		},'json')
		

		return false;
	})
</script>
<!-- 
<div class="bdc w500">
	<div class="bgwhite-2 p10 fm f16">订单信息</div>
	<p class="p10">订单编号：234234234</p>
	<p class="p10">下单时间：</p>
	<div class="bgwhite-2 p10 fm f16">收货人信息</div>
	<p class="p10">收货人姓名：</p>
	<p class="p10">收货地址：</p>
	<p class="p10">手机：</p>
	<div class="bgwhite-2 p10 fm f16">订单总金额：<span class="red fa f16">33</span></div>
</div>
 -->

<include file="__TPL__/foot.html">





